<!DOCTYPE html>
<html>
<head>
<title>Weiran ECMAScript Applications Framework</title>
<link rel=stylesheet type=text/css href=./style.css>
</head>

<body>

<div class=leftbar>
    <h1>Weiran</h1>
    <p>ECMAScript<br />Applications Framework</p>
    <p>Version: 1.2</p>
    <ul>
	<li><a href=Weiran.html>Weiran</a></li>
	<li><a href=Weiran.Array.html>Weiran.Array</a></li>
	<li><a href=Weiran.Buffer.html>Weiran.Buffer</a></li>
	<li><a href=Weiran.Class.html>Weiran.Class</a></li>
	<li><a href=Weiran.Date.html>Weiran.Date</a></li>
	<li><a href=Weiran.DB.html>Weiran.DB</a></li>
	<li><a href=Weiran.Event.html>Weiran.Event</a></li>
	<li><a href=Weiran.Events.html>Weiran.Events</a></li>
	<li>Weiran.Function<ul>
	    <li><a href=#Weiran.Function.bind>Weiran.Function.bind</a></li>
	    <li><a href=#Weiran.Function.bindAsEventListener>Weiran.Function.bindAsEventListener</a></li>
	    <li><a href=#Weiran.Function.False>Weiran.Function.False</a></li>
	    <li><a href=#Weiran.Function.True>Weiran.Function.True</a></li>
	    <li><a href=#Weiran.Function.Void>Weiran.Function.Void</a></li>
	</ul></li>
	<li><a href=Weiran.JSON.html>Weiran.JSON</a></li>
	<li><a href=Weiran.Lang.html>Weiran.Lang</a></li>
	<li><a href=Weiran.Number.html>Weiran.Number</a></li>
	<li><a href=Weiran.String.html>Weiran.String</a></li>
	<li><a href=Weiran.GRUB.html>GRUB Mechanism</a></li>
    </ul>
    <p>
        Copyright &copy; All<span>i</span>dylls<br />
        2011 - 2012
    </p>
</div>

<div class=content>

<div class=reftitle>Weiran.Function</div>
<p>Sub namespace contains convenience functions for function manipulation.</p>

<a name=Weiran.Function.bind></a>
<h3><code>Weiran.Function.bind(func, obj)</code></h3>
<p><b>Static method</b></p>
<p>
    <b>Parameters: </b><br />
    <span class=parameters>func</span> - <code>function</code><br />
    <span class=parameters>obj</span> - <code>object</code>
</p>
<p><b>Returns: </b><code>function</code></p>
<p>Returns a closure with <code>this</code> set to the passed in object.
		    Bind a function to an object. Method to easily create closures with <code>this</code> altered.</p>

<a name=Weiran.Function.bindAsEventListener></a>
<h3><code>Weiran.Function.bindAsEventListener(func, obj)</code></h3>
<p><b>Static method</b></p>
<p>
    <b>Parameters: </b><br />
    <span class=parameters>func</span> - <code>function</code><br />
    <span class=parameters>obj</span> - <code>object</code>
</p>
<p><b>Returns: </b><code>function</code></p>
<p>Bind a function to an object, and configure it to receive the event object as first parameter when called. </p>

<a name=Weiran.Function.False></a>
<h3><code>Weiran.Function.False()</code></h3>
<p><b>Static method</b></p>
<p>
    <b>Parameters: </b>
</p>
<p><b>Returns: </b><code>boolean</code></p>
<p>Returns boolean false. A simple function to that just does <code>return false</code>.
    We use this to avoid attaching anonymous functions to DOM event handlers, which causes "issues" on IE&lt;8.</p>

<a name=Weiran.Function.True></a>
<h3><code>Weiran.Function.True()</code></h3>
<p><b>Static method</b></p>
<p>
    <b>Parameters: </b>
</p>
<p><b>Returns: </b><code>boolean</code></p>
<p>Returns boolean true. A simple function to that just does <code>return true</code>.
    We use this to avoid attaching anonymous functions to DOM event handlers, which causes "issues" on IE&lt;8.</p>

<a name=Weiran.Function.Void></a>
<h3><code>Weiran.Function.Void()</code></h3>
<p><b>Static method</b></p>
<p>
    <b>Parameters: </b>
</p>
<p><b>Returns: </b><code>undefined</code></p>
<p>A reusable function that returns <code>undefined</code>.</p>

</div>

</body>
</html>
